import { fetchGet, fetchPost, fetchPut, fetchDel,fetchGetDown} from "@/axios";
const employeeSalary = {
  // 查询所有考勤人员
  getEmployeeSalaryList() {
    return fetchGet(`/api/empSalaInfo/queryAll`);
  },

  getEmployeeSalaryListBy(empName,empJob,emDepartment) {
    return fetchGet(`/api/empSalaInfo/queryAll?empName=${empName}&empJob=${empJob}&emDepartment=${emDepartment}`);
  },
  // 分页查询表格数据请求
  getEmployeeSalaryPage(page, pageSize) {
    return fetchGet(
      `/api/empSalaInfo/queryAll?page=${page}&pageSize=${pageSize}`
    );
  },
  changeEmployeeInfo(params) {
    return fetchPut(`/api/empSalaInfo/updateAll`,params)
  },
  delEmployeeInfo(params) {
    return fetchDel(`/api/empSalaInfo/deleteBatchById?empStaNum=${params}`)
  },
  reqUpFile(params) {
    return fetchPost('/api/empSalaInfo/importEmpSalaInfo',params)
},
addMoney(params) {
  return fetchPost('/api/empSalaInfo/insertData',params)
},
download() {
  return fetchGetDown('/api/empSalaInfo/exportEmpSalaInfoAll')
},
};
export default employeeSalary;
